package cn.edu.zut.soft.student.service.notice;

import cn.edu.zut.soft.student.bean.PageBean;
import cn.edu.zut.soft.student.model.Notice;
import cn.edu.zut.soft.student.service.notice.vo.NoticeQuery;

import java.util.List;

/**
 * @Author ChrisPhantom
 * @CreatDate 2021/02/16 10:57
 */
public interface NoticeBo {

    /*
     * @Param: [notice]
     * @Return: int
     * @Author: ChrisPhantom
     * @Date: 2021/2/16 15:53
     * @Description: 新增公共
     */
    public int addNotice(Notice notice);

    /*
     * @Param: [id]
     * @Return: int
     * @Author: ChrisPhantom
     * @Date: 2021/2/16 16:05
     * @Description: 根据公共ID删除
     */
    public int deleteNotice(int id);

    /*
     * @Param: [notice]
     * @Return: int
     * @Author: ChrisPhantom
     * @Date: 2021/2/16 16:09
     * @Description: 更新公共
     */
    public int updateNotice(Notice notice);

    /*
     * @Param: [noticeId]
     * @Return: cn.edu.zut.soft.student.model.Notice
     * @Author: ChrisPhantom
     * @Date: 2021/2/18 16:34
     * @Description: 根据公告ID查询
     */
    public Notice getNoticeById(int noticeId);

    /*
     * @Param: []
     * @Return: java.util.List<cn.edu.zut.soft.student.model.Notice>
     * @Author: ChrisPhantom
     * @Date: 2021/2/16 11:02
     * @Description: 获取所有公告
     */
    public PageBean<List<Notice>> getNotices(NoticeQuery noticeQuery);
}
